import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home/index.vue'
import Sponsors from '../views/sponsors/index.vue'
import News from '../views/news/index.vue'
import Usercenter from '../views/usercenter/index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    name: 'Home',
    component: Home,
    },
  {
    path: '/sponsors',
    name: 'Sponsors',
    component:Sponsors
  },{
    path: '/news',
    name: 'News',
    component: News
  },{
    path: '/usercenter',
    name: 'Usercenter',
    component:Usercenter
  }
]

const router = new VueRouter({
  routes
})

export default router
